// import Login from './views/Login.vue'
const Login = () => import('./views/Login.vue') // 登录
const NotFound = () => import('./views/404.vue') // 404
const Home = () => import('./views/Home.vue') // 首页
const Allinfo = () => import('./views/Allinfo.vue') // 仪表盘
const SignManagement = () => import('./views/contract/sign-management.vue') // 签约管理
const ClassSpecification = () => import('./views/specification/class-specification.vue') // 课包规格
const User = () => import('./views/user/user.vue') // 用户管理
const ContractConfiguration = () => import('./views/configuration/contract-configuration.vue') // 合同配置
const ChannelsManagement = () => import('./views/channels/channels-management.vue') // 渠道管理
// const Category = () => import('./views/warehouse/category.vue') // 商品/礼品分类
// const GoodsManagement = () => import('./views/warehouse/goods-management.vue') // 商品管理
// const Warehouse = () => import('./views/warehouse/warehouse.vue') // 仓库管理
const Company = () => import('./views/company/company.vue') // 企业管理
const PaySetting = () => import('./views/pay-setting/pay-setting.vue') // 支付配置
const GiftVerification = () => import('./views/gift-verification/gift-verification.vue') // 礼品核销

import Setting from './views/setting/seting' // 会员设置
// import fa from "element-ui/src/locale/lang/fa";

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true,
		meta: { keepAlive: false }
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true,
		meta: { keepAlive: false }
    },
	{
	    path: '/',
	    component: Home,
	    name: '商城概述',
	    iconCls: 'fa fa-dashboard',
	    leaf: true,//只有一个节点
	    children: [
	        { path: '/allinfo', component: Allinfo, name: '仪表盘', meta: { keepAlive: false } }
	    ],
		meta: { keepAlive: false }


	},
	{
	    path: '/',
	    component: Home,
	    name: '签约管理',
	    iconCls: 'fa fa-archive',//图标样式class
        leaf: true,//只有一个节点
	    children: [
	        { path: '/sign-management', component: SignManagement, name: '签约管理', meta: { keepAlive: false }  }
	    ],
		meta: { keepAlive: false }
	},
	{
		path: '/',
		name: '课包规格',
		iconCls: 'fa fa-book', // 图标样式class
		component: Home,
		leaf: true,
		children: [
			{ path: '/class-specification', component: ClassSpecification, name: '课包规格', meta: { keepAlive: false }  }
		],
		meta: { keepAlive: false }
	},
	{
		path: '/',
		name: '用户管理',
		iconCls: 'fa fa-user-circle-o', // 图标样式class
		component: Home,
		leaf: true,
		children: [
			{ path: '/user', component: User, name: '用户管理', meta: { keepAlive: true }  }
		],
		meta: { keepAlive: false }
	},
	{
		path: '/',
		name: '合同配置',
		iconCls: 'fa fa-file-text', // 图标样式class
		component: Home,
		leaf: true,
		children: [
			{ path: '/contract-configuration', component: ContractConfiguration, name: '合同配置', meta: { keepAlive: false }  }
		],
		meta: { keepAlive: false }
	},
	{
		path: '/',
		name: '渠道管理',
		iconCls: 'fa fa-hourglass-half', // 图标样式class
		component: Home,
		leaf: true,
		children: [
			{ path: '/channels-management', component: ChannelsManagement, name: '渠道管理', meta: { keepAlive: false }  }
		],
		meta: { keepAlive: false }
	},
	{
		path: '/',
		name: '企业管理',
		iconCls: 'fa fa-building', // 图标样式class
		component: Home,
		leaf: true,
		children: [
			{ path: '/company', component: Company, name: '企业管理', meta: { keepAlive: false }  }
		],
		meta: { keepAlive: false }
	},
	// {
	// 	path: '/',
	// 	name: '支付配置',
	// 	iconCls: 'fa fa-paypal', // 图标样式class
	// 	component: Home,
	// 	leaf: true,
	// 	children: [
	// 		{ path: '/pay-setting', component: PaySetting, name: '支付配置', meta: { keepAlive: false }  }
	// 	],
	// 	meta: { keepAlive: false }
	// },
	{
		path: '/',
		name: '礼品核销',
		iconCls: 'fa fa-gift', // 图标样式class
		component: Home,
		leaf: true,
		children: [
			{ path: '/gift-verification', component: GiftVerification, name: '礼品核销', meta: { keepAlive: false }  }
		],
		meta: { keepAlive: false }
	},
	// {
	// 	path: '/',
	// 	name: '仓管系统',
	// 	iconCls: 'fa fa-file-text', // 图标样式class
	// 	component: Home,
	// 	children: [
	// 		{ path: '/goods-management', component: GoodsManagement, name: '商品管理', meta: { keepAlive: false }  },
	// 		// { path: '/warehouse', component: Warehouse, name: '仓库管理' },
	// 		{ path: '/category', component: Category, name: '商品分类', meta: { keepAlive: false }  },
	// 		// { path: '/category', component: Category, name: '商品分类', hidden: true }
	// 	],
	// 	meta: { keepAlive: false }
	// },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' },
		meta: { keepAlive: false }
    }
]

export default routes;
